package com.example.demo.model;

import java.time.LocalDateTime;

/**
 *  
 * 表:news 
 * @author sun 
 * @date 2022-04-28 
 */
public class News {
    /**
     * 
     * 表字段:id
     */
    private Integer id;

    /**
     * 
     * 表字段:title
     */
    private String title;

    /**
     * 
     * 表字段:content
     */
    private String content;

    /**
     * 
     * 表字段:date
     */
    private LocalDateTime date;

    /**
     * 
     * 表字段:url
     */
    private String url;

    /**
     * 
     * 表字段:image_path
     */
    private String imagePath;

    /**
     * 
     * 表字段:type
     */
    private String type;

    /**
     * 获取
     * @return id Integer
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return title String
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title 
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取
     * @return content String
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content 
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * 获取
     * @return date LocalDateTime
     */
    public LocalDateTime getDate() {
        return date;
    }

    /**
     * 设置
     * @param date 
     */
    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    /**
     * 获取
     * @return url String
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置
     * @param url 
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * 获取
     * @return imagePath String
     */
    public String getImagePath() {
        return imagePath;
    }

    /**
     * 设置
     * @param imagePath 
     */
    public void setImagePath(String imagePath) {
        this.imagePath = imagePath == null ? null : imagePath.trim();
    }

    /**
     * 获取
     * @return type String
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type 
     */
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }
}